package com.cms.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cms.dao.mapper.PageCatalogMapper;
import com.cms.exception.SystemDBException;
import com.cms.model.TrPageCatalog;
import com.cms.service.PageCatalogService;

@Service
public class PageCatalogServiceImpl implements PageCatalogService {

	 @Autowired
	 private PageCatalogMapper catalogMapper;
	 
	 /**
	  * 
	  * @param catalog
	  * @throws SystemDBException
	  */
	 public void savePageCatalog(TrPageCatalog catalog)throws SystemDBException
	 {
		 catalogMapper.savePageCatalog(catalog);
	 }
	 
	 
	 /**
	  * 
	  * @param catalog
	  * @throws SystemDBException
	  */
	 public void updatePageCatalog(TrPageCatalog catalog)throws SystemDBException
	 {
		 catalogMapper.updatePageCatalog(catalog);
	 }
	 
	 
	 @Override
	 public List<TrPageCatalog> queryPageCatalog(TrPageCatalog catalog) {
		return catalogMapper.queryPageCatalog(catalog);
	 }


	@Override
	public TrPageCatalog getPageCatalogById(TrPageCatalog catalog) {
		return this.catalogMapper.getPageCatalogById(catalog);
	}
	 
	 
}
